import { createSlice } from "@reduxjs/toolkit";
let MrSlice = createSlice({
    name: "MrSlice",
    initialState: {
        mrData: [],
    },
    reducers: {
        setMrData: (state, action) => {
            let copy=[...state.mrData]
            copy.push(action.payload)
            state.mrData=[...copy]
            return state
        },
    },
});

export let { setMrData } = MrSlice.actions
export default MrSlice